:root {
  --macos-bg: #f5f5f7;
  --macos-window-bg: rgba(255, 255, 255, 0.85);
  --macos-accent: #0071e3;
  --macos-accent-hover: #0077ed;
  --macos-text: #1d1d1f;
  --macos-secondary-text: #86868b;
  --macos-border: rgba(0, 0, 0, 0.1);
  --macos-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --macos-radius: 12px;
  --macos-button-radius: 20px;
  --macos-transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--macos-bg);
  color: var(--macos-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.macos-window {
  background: var(--macos-window-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--macos-radius);
  box-shadow: var(--macos-shadow);
  border: 1px solid var(--macos-border);
  overflow: hidden;
  transition: var(--macos-transition);
  transform: translateY(0);
}

.macos-window:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.macos-titlebar {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid var(--macos-border);
}

.macos-buttons {
  display: flex;
  gap: 8px;
}

.macos-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.macos-close { background-color: #ff5f57; }
.macos-minimize { background-color: #febc2e; }
.macos-maximize { background-color: #28c840; }

.macos-title {
  flex-grow: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--macos-secondary-text);
}

.macos-content {
  padding: 20px;
}

/* 表单元素样式 */
.macos-input {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--macos-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  transition: var(--macos-transition);
  width: 100%;
  margin-bottom: 16px;
  outline: none;
}

.macos-input:focus {
  border-color: var(--macos-accent);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.3);
}

.macos-button-primary {
  background: var(--macos-accent);
  color: white;
  border: none;
  border-radius: var(--macos-button-radius);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--macos-transition);
  width: 100%;
  margin-bottom: 12px;
}

.macos-button-primary:hover {
  background: var(--macos-accent-hover);
  transform: translateY(-2px);
}

.macos-button-secondary {
  background: transparent;
  color: var(--macos-accent);
  border: 1px solid var(--macos-accent);
  border-radius: var(--macos-button-radius);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--macos-transition);
  width: 100%;
}

.macos-button-secondary:hover {
  background: rgba(0, 113, 227, 0.1);
  transform: translateY(-2px);
}

/* 卡片样式 */
.macos-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--macos-radius);
  border: 1px solid var(--macos-border);
  padding: 16px;
  margin-bottom: 16px;
  transition: var(--macos-transition);
}

.macos-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--macos-shadow);
}

/* 表格样式 */
.macos-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--macos-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.macos-table th {
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--macos-secondary-text);
  border-bottom: 1px solid var(--macos-border);
}

.macos-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--macos-border);
}

.macos-table tr:last-child td {
  border-bottom: none;
}

.macos-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

/* 动画 */
@keyframes macos-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes macos-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.macos-animate-fade-in {
  animation: macos-fade-in 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.macos-animate-scale-in {
  animation: macos-scale-in 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* 模态框样式 */
.macos-modal {
  background: var(--macos-window-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--macos-radius);
  box-shadow: var(--macos-shadow);
  border: 1px solid var(--macos-border);
  max-width: 90%;
  width: auto;
  margin: 0 auto;
  animation: macos-scale-in 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.macos-modal-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--macos-border);
}

.macos-modal-title {
  flex-grow: 1;
  font-size: 18px;
  font-weight: 500;
}

.macos-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--macos-secondary-text);
  font-size: 20px;
}

.macos-modal-body {
  padding: 20px;
}

.macos-modal-footer {
  padding: 16px;
  border-top: 1px solid var(--macos-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* 座位选择样式 */
.macos-seat-container {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.macos-seat {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--macos-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: 500;
}

.macos-seat.available {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.macos-seat.selected {
  background-color: var(--macos-accent);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

.macos-seat.sold {
  background-color: rgba(255, 0, 0, 0.3);
  cursor: not-allowed;
  opacity: 0.7;
}

.macos-screen {
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.3));
  height: 10px;
  width: 80%;
  margin: 0 auto 30px auto;
  transform: perspective(400px) rotateX(-30deg);
  box-shadow: 0 3px 10px rgba(255,255,255,0.7);
  border-radius: 5px;
}

.macos-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.macos-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.macos-legend-item .macos-seat {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}